package com.liveneo.adapter.mobile.model.dto;

/**
 * 任务详情VO
 * @author wangxx
 *
 * @since 2016-06-12
 */
public class LossItemDto implements Comparable<LossItemDto>{
    /**
     *  案件号
     */
    private String                  caseNo;
    /**
     * 案件唯一标识
     */
    private String                  uuid;
    /**
     * 损失任务ID
     */
    private String                  lossUuid;
    /**
     * 定损任务名称
     */
    private String                  lossName;
    /**
     * 损失任务类型:
     * 
     * 1-标的车;2-三者车;3-本车司机;4-本车车上人员;5-三者人员;6-车上物;7-三者物
     */
    private String                  lossType;
    /**
     * 损失任务号
     */
    private String                  lossId;
    /**
     * 损失任务状态
     * 任务状态:0-待处理 1-连接成功 2-取证完成 3-申请改派 4-改派完成 5-取证前注销 6-取证后注销  8-上传成功
     */
    private String                  lossStatus;
    /**
     * 查勘员姓名
     */
    private String                  surveyorName;
    /**
     * 查勘员代码
     */
    private String                  surveyorCode;
    /**
     * 案件下发时间
     */
    private String                  createTime;
    /**
     * 是否所属任务
     * 0、不属于 1、属于 ；根据入参surveyUserCode和任务中surveyUserCode对比得出
     */
    private String                  own;
    /**
     * 查勘员确认状态 1.确认 0.未确认
     */
    private String                  flag;
    private String                  registNo;
    /**
     * 损失项状态0-待处理 1-连接成功 2-取证完成 3-申请改派 4-改派完成 5-取证前注销 6-取证后注销  8-上传成功（其中2，4,5,6是结束状态）
     */
    private String                  lossUStatus;
//    private List<MobileLossItemDto> lossItemSurveyTypeList;
//    
//    public List<MobileLossItemDto> getLossItemSurveyTypeList() {
//        return lossItemSurveyTypeList;
//    }
//
//    public void setLossItemSurveyTypeList(List<MobileLossItemDto> lossItemSurveyTypeList) {
//        this.lossItemSurveyTypeList = lossItemSurveyTypeList;
//    }
    
    public String getLossUStatus() {
        return lossUStatus;
    }

    public void setLossUStatus(String lossUStatus) {
        this.lossUStatus = lossUStatus;
    }
    
    public String getRegistNo() {
        return registNo;
    }


    public void setRegistNo(String registNo) {
        this.registNo = registNo;
    }

    public String getCaseNo() {
        return caseNo;
    }

    public void setCaseNo(String caseNo) {
        this.caseNo = caseNo;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getLossUuid() {
        return lossUuid;
    }

    public void setLossUuid(String lossUuid) {
        this.lossUuid = lossUuid;
    }

    public String getLossName() {
        return lossName;
    }

    public void setLossName(String lossName) {
        this.lossName = lossName;
    }

    public String getLossType() {
        return lossType;
    }

    public void setLossType(String lossType) {
        this.lossType = lossType;
    }

    public String getLossId() {
        return lossId;
    }

    public void setLossId(String lossId) {
        this.lossId = lossId;
    }

    public String getLossStatus() {
        return lossStatus;
    }

    public void setLossStatus(String lossStatus) {
        this.lossStatus = lossStatus;
    }

    public String getSurveyorName() {
        return surveyorName;
    }

    public void setSurveyorName(String surveyorName) {
        this.surveyorName = surveyorName;
    }

    public String getSurveyorCode() {
        return surveyorCode;
    }

    public void setSurveyorCode(String surveyorCode) {
        this.surveyorCode = surveyorCode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getOwn() {
        return own;
    }

    public void setOwn(String own) {
        this.own = own;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    /**
     * 逆序
     */
    @Override
    public int compareTo(LossItemDto o) {
        if(o == null){
        return -1;
    }
    if(o.getLossId() == null ){
        return 1;
    }
    if(this.getLossId() == null ){
        return -1;
    }
    return Integer.valueOf(this.getLossId()).compareTo(Integer.valueOf(o.getLossId()));
    }

}
